/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconPhoto: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M622.88 128a64 64 0 0 1 53.248 28.48L721.12 224H832a96 96 0 0 1 95.84 90.368L928 320v416a96 96 0 0 1-96 96H192a96 96 0 0 1-96-96V320a96 96 0 0 1 96-96h110.848l45.024-67.52a64 64 0 0 1 47.936-28.256L401.12 128z m0 64h-221.76l-54.496 81.76A32 32 0 0 1 320 288H192a32 32 0 0 0-32 32v416a32 32 0 0 0 32 32h640a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32h-128a32 32 0 0 1-26.624-14.24L622.88 192zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384z m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconPhoto.defaultProps = {
  size: 18,
};

export default IconPhoto;
